package com.ruoyi.info.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋管理对象 sys_building
 * 
 * @author ruoyi
 * @date 2022-10-04
 */
public class SysBuilding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 楼栋ID */
    private Long id;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private String name;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 小区ID */
    @Excel(name = "小区ID")
    private Long villageId;

    private SysVillage sysVillage;

    public SysVillage getSysVillage() {
        return sysVillage;
    }

    public void setSysVillage(SysVillage sysVillage) {
        this.sysVillage = sysVillage;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setVillageId(Long villageId) 
    {
        this.villageId = villageId;
    }

    public Long getVillageId() 
    {
        return villageId;
    }

    @Override
    public String toString() {
        return "SysBuilding{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", state='" + state + '\'' +
                ", villageId=" + villageId +
                ", sysVillage=" + sysVillage +
                '}';
    }
}
